package com.settlement.system.service;

import com.settlement.system.common.exception.ServiceException;
import com.settlement.system.model.entity.common.SinglePage;
import com.settlement.system.model.entity.common.TblOrderAuditBill;
import com.settlement.system.model.entity.common.TblRefundAuditBill;
import com.settlement.system.model.vo.TblOrderAuditBillVo;
import org.apache.ibatis.session.ResultHandler;

import java.util.List;
import java.util.Map;

/**
 * 订单稽核单据主表 服务类
 * @author 小船
 * @since 2020-10-21
 */

public interface ITblOrderAuditBillService extends IBaseService {

    /**
     * selectBillCount
     * @param params
     * @return
     * @throws ServiceException
     */
    int selectBillCount(Map<String, Object> params) throws ServiceException;

    /**
     * selectBillByPage
     * @param singlePage
     * @param params
     * @param orderByField
     * @param orderBy
     * @return
     * @throws ServiceException
     */
    List<TblOrderAuditBill> selectBillByPage(SinglePage singlePage, Map<String, Object> params, String orderByField, String orderBy) throws ServiceException;;

    /**
     * selectBillDtl
     * @param params
     * @return
     * @throws ServiceException
     */
    TblOrderAuditBillVo selectBillDtl(Map<String, Object> params) throws ServiceException;

    /**
     * getDataBillByHandler
     * @param params
     * @param handler
     * @throws ServiceException
     */
    void getDataBillByHandler(Map<String, Object> params, ResultHandler<TblOrderAuditBill> handler) throws ServiceException;
}

